package net.cjw.initsb.controller.background;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import net.cjw.initsb.common.ServiceResult;

@Api(description = "权限拦截返回值")
@RestController
@RequestMapping("shiro")
public class ShiroController {

	Logger logger = LoggerFactory.getLogger(this.getClass());

	@GetMapping("v{version}/permission/error")
	public ServiceResult<String> create(
			@ApiParam(value = "版本号", defaultValue = "1") @PathVariable("version") Integer version) {
		return ServiceResult.buildError("没有权限");
	}

}
